﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserMg.aspx.cs" Inherits="WebPages.AdminPages.UserMg" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
       <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.5.1.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <p>我是用户管理界面</p>
            <asp:Repeater ID="RepUser" runat="server" OnItemCommand="RepUser_ItemCommand">
                <HeaderTemplate>
                    <table border="1">
                       <tr>
                           <th>
                               学号
                           </th>
                           <th>
                               姓名
                           </th>
                           <th>
                               账号
                           </th>
                           <th>
                               密码
                           </th>
                           <th>
                               商品
                           </th>
                           <th>
                               余额
                           </th>
                           <th>
                               认证状态
                           </th>
                           <th>
                               头像
                           </th>
                           <th>
                               注册时间
                           </th>
                       </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text=""><%#Eval("SID")%></asp:Label>
                        </td>
                         <td>
                            <asp:Label ID="Label2" runat="server" Text=""><%#Eval("name")%></asp:Label>
                        </td>
                         <td>
                            <asp:Label ID="Label3" runat="server" Text=""><%#Eval("account")%></asp:Label>
                        </td>
                         <td>
                            <asp:Label ID="Label4" runat="server" Text=""><%#Eval("pwd")%></asp:Label>
                        </td>
                         <td>
                            <asp:Label ID="Label5" runat="server" Text=""><%#Eval("goods")%></asp:Label>
                        </td>
                         <td>
                            <asp:Label ID="Label6" runat="server" Text=""><%#Eval("wallet")%></asp:Label>
                        </td>
                         <td>
                            <asp:Label ID="Label7" runat="server" Text=""><%#Eval("is_accepted")%></asp:Label>
                        </td>
                        <td>
                            <img src='<%#Eval("face")%>'/>
                        </td>
                        <td>
                             <asp:Label ID="Label8" runat="server" Text=""><%#Eval("regtime")%></asp:Label>
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="编辑"  CommandName="Edit" CommandArgument='<%#Eval("SID")%>' />
                            <asp:Button ID="Button2" runat="server" Text="删除"  CommandName="Delete" CommandArgument='<%#Eval("SID")%>' />
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
                
            </asp:Repeater>
        </div>
        <div id="edit" style="visibility:hidden" runat="server">
            <asp:Label ID="Label9" runat="server" Text="学号:"></asp:Label>
            <asp:Label ID="SIDlb" runat="server" Text=""></asp:Label>            
            <br />
            <asp:Label ID="Label10" runat="server" Text="姓名:"></asp:Label>
            <asp:TextBox ID="nametxt" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label11" runat="server" Text="账号:"></asp:Label>
            <asp:TextBox ID="accounttxt" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label18" runat="server" Text="邮箱:"></asp:Label>
            <asp:TextBox ID="emailtxt" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label12" runat="server" Text="密码:"></asp:Label>
            <asp:TextBox ID="pwdtxt" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label13" runat="server" Text="商品:"></asp:Label>
            <asp:TextBox ID="goodtxt" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label14" runat="server" Text="余额:"></asp:Label>
            <asp:TextBox ID="wallettxt" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label15" runat="server" Text="认证状态:"></asp:Label>
            <asp:CheckBox ID="is_acceptedck" runat="server" Text="已认证" TextAlign="Left" />
            <br />
            <asp:Label ID="Label16" runat="server" Text="头像:"></asp:Label>
            <img id="faceimg" src="" style="width:150px;height:150px;" runat="server"/>
            <br />
            <asp:FileUpload ID="FileUpload1" runat="server" />
            <br />
            <asp:Label ID="Label17" runat="server" Text="注册时间:"></asp:Label>
            <asp:Label ID="timelb" runat="server" Text=""></asp:Label>
            <br />
            <input type="submit" runat="server" onserverclick="Accept_Click" value="确定"/>
            
            <asp:Button ID="Cancel" runat="server" Text="取消" OnClick="Cancel_Click" />
            
        </div>

    </form>
</body>
</html>
